package com.snailxr.base.task.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 记录每个集合自增序列最大值
 * @author luoshijian
 *
 */
@Document(collection = "sequence") 
public class SeqInfo {
	@Id  
    private String id;// 主键  
  
    @Field  
    private String collName;// 集合名称  
  
    @Field  
    private int seqId;// 序列值  

	public String getCollName() {
		return collName;
	}

	public void setCollName(String collName) {
		this.collName = collName;
	}

	public int getSeqId() {
		return seqId;
	}

	public void setSeqId(int seqId) {
		this.seqId = seqId;
	}

	@Override
	public String toString() {
		return String.format("SqlId [id=%s, collName=%s, seqId=%s]", id, collName, seqId);
	}
    
}
